﻿using System.Collections;
using System.Collections.Generic;

namespace DataScripter.Scripting.Processes
{
	public class TableList : ITableList
	{
		private readonly IList<string> _tables = new List<string>();

		public TableList(string name)
		{
			Name = name;
		}

		public string Name { get; private set; }

		public void AddTable(string tableName)
		{
			_tables.Add(tableName);
		}

		public IEnumerator<string> GetEnumerator()
		{
			return _tables.GetEnumerator();
		}

		IEnumerator IEnumerable.GetEnumerator()
		{
			return GetEnumerator();
		}
	}
}